import {api} from '../request'
// 产品详情页-顶部-产品信息
export function getProductDetail (params){
    return api('/api/v1/insights/detail',params,'post')
}

// /产品详情页-中间-销量数字
export function getSaleNumber(params){
    return api('/api/v1/insights/product_stats',params,'post')
}
// 产品详情页-底部-每日销量统计
export function getSaleList(params){
    return api('/api/v2/insights/daily_sale_log',params,'post')
}
// 产品详情页-中间-销量趋势-折线图
export function getLineChart(goods_id){
    return api('/api/v1/insights/daily_sale_charts',{goods_id:goods_id},'post')
}
// /产品详情页-中间-每日排名统计
export function getLineChart2(goods_id){
    return api('/api/v1/insights/daily_rank_charts',{goods_id:goods_id},'post')
}
//产品详情页-中间-国家占比
export function getPieChart1(params){
    return api('/api/v1/insights/country_sale_charts',params,'post')
}
// 产品详情页-中间-平台销售占比
export function getPieChart2(params){
    return api('/api/v1/insights/shop_data_charts',params,'post')
}
